package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: CustStatusEnum
 * @projectName smart-sail
 * @description: 采购状态
 * @date 2019/7/311:57
 */
public enum PurchaseStatusEnum implements IEnum {
    //1.待采购2待入库3已入库
    DCG(1,"待采购"),
    CGZ(2,"采购中"),
    DRK(3,"已完成"),
    YRK(4,"已入库")
    ;

    PurchaseStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
